#pragma once
class CCurve
{
private:
	static const int m_count=m_element_count;
	double m_y[m_count];
	double m_a[m_count-1];
	double m_b[m_count-1];
	double m_c[m_count-1];
	double m_d[m_count-1];
	void Go(double &a,double &b,double &c,double &d,double dy1,double dy2,double y1,double y2,double x1);
public:
	void Create(int count);
	void Set(int index,double y);
	void Go();
	double Get(double x);
	CCurve(void);
	~CCurve(void);
};

